<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>今日纪念日</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .anniversary-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 25px;
            padding: 40px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            max-width: 600px;
            width: 100%;
            text-align: center;
            backdrop-filter: blur(15px);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .celebration-header {
            margin-bottom: 30px;
        }

        .celebration-icon {
            font-size: 80px;
            margin-bottom: 15px;
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        .title {
            font-size: 32px;
            font-weight: bold;
            color: #e91e63;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .date-display {
            font-size: 18px;
            color: #666;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #ffeaa7, #fab1a0);
            padding: 10px 20px;
            border-radius: 20px;
            display: inline-block;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .anniversaries-list {
            margin-bottom: 30px;
        }

        .anniversary-card {
            background: linear-gradient(135deg, #fd79a8, #fdcb6e);
            color: white;
            padding: 25px;
            border-radius: 20px;
            margin-bottom: 20px;
            box-shadow: 0 10px 20px rgba(253, 121, 168, 0.3);
            position: relative;
            overflow: hidden;
        }

        .anniversary-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: shine 3s ease-in-out infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
            100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
        }

        .anniversary-name {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .anniversary-date {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }

        .anniversary-message {
            font-size: 14px;
            font-style: italic;
            opacity: 0.8;
            position: relative;
            z-index: 1;
        }

        .celebration-message {
            background: linear-gradient(135deg, #a29bfe, #6c5ce7);
            color: white;
            padding: 20px;
            border-radius: 15px;
            margin: 25px 0;
            box-shadow: 0 8px 16px rgba(108, 92, 231, 0.3);
        }

        .celebration-text {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .celebration-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }

        .decorative-elements {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 25px 0;
        }

        .decorative-heart {
            font-size: 30px;
            color: #e84393;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        .decorative-heart:nth-child(2) {
            animation-delay: 0.3s;
        }

        .decorative-heart:nth-child(3) {
            animation-delay: 0.6s;
        }

        @keyframes heartbeat {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .special-effects {
            position: relative;
            margin: 20px 0;
        }

        .firework {
            position: absolute;
            font-size: 20px;
            animation: firework 2s ease-out infinite;
        }

        .firework:nth-child(1) {
            top: 10px;
            left: 20%;
            animation-delay: 0s;
        }

        .firework:nth-child(2) {
            top: 30px;
            right: 20%;
            animation-delay: 0.5s;
        }

        .firework:nth-child(3) {
            top: 50px;
            left: 50%;
            animation-delay: 1s;
        }

        @keyframes firework {
            0% {
                opacity: 0;
                transform: scale(0) rotate(0deg);
            }
            50% {
                opacity: 1;
                transform: scale(1) rotate(180deg);
            }
            100% {
                opacity: 0;
                transform: scale(1.5) rotate(360deg);
            }
        }

        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid rgba(233, 30, 99, 0.3);
            font-size: 12px;
            color: #7f8c8d;
        }

        .blessing {
            background: linear-gradient(135deg, #ff7675, #fd79a8);
            color: white;
            padding: 15px;
            border-radius: 15px;
            margin: 20px 0;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 6px 12px rgba(255, 118, 117, 0.3);
        }

        .years-together {
            background: linear-gradient(135deg, #00b894, #00cec9);
            color: white;
            padding: 15px;
            border-radius: 15px;
            margin: 15px 0;
            font-size: 14px;
            box-shadow: 0 6px 12px rgba(0, 184, 148, 0.3);
        }

        .confetti {
            position: absolute;
            font-size: 16px;
            animation: confetti 3s linear infinite;
        }

        @keyframes confetti {
            0% {
                transform: translateY(-100vh) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }
    </style>
</head>
<body>
    <!-- 彩带效果 -->
    <div class="confetti" style="left: 10%; animation-delay: 0s;">🎊</div>
    <div class="confetti" style="left: 20%; animation-delay: 0.5s;">🎉</div>
    <div class="confetti" style="left: 30%; animation-delay: 1s;">🎊</div>
    <div class="confetti" style="left: 40%; animation-delay: 1.5s;">🎉</div>
    <div class="confetti" style="left: 50%; animation-delay: 2s;">🎊</div>
    <div class="confetti" style="left: 60%; animation-delay: 2.5s;">🎉</div>
    <div class="confetti" style="left: 70%; animation-delay: 3s;">🎊</div>
    <div class="confetti" style="left: 80%; animation-delay: 3.5s;">🎉</div>
    <div class="confetti" style="left: 90%; animation-delay: 4s;">🎊</div>

    <div class="anniversary-container">
        <div class="celebration-header">
            <div class="celebration-icon">🎉</div>
            <div class="title">今日纪念日</div>
            <div class="date-display">{{currentDate}}</div>
        </div>

        <div class="special-effects">
            <div class="firework">✨</div>
            <div class="firework">🎆</div>
            <div class="firework">⭐</div>
        </div>

        <div class="celebration-message">
            <div class="celebration-text">🎊 特殊的日子到了！</div>
            <div class="celebration-subtitle">今天有 {{todayAnniversaries.length}} 个纪念日值得庆祝</div>
        </div>

        <div class="anniversaries-list">
            {{#each todayAnniversaries}}
            <div class="anniversary-card">
                <div class="anniversary-name">💕 {{this.name}}</div>
                <div class="anniversary-date">📅 {{this.date}}</div>
                {{#if this.yearsAgo}}
                <div class="years-together">
                    🎂 已经过去了 {{this.yearsAgo}} 年
                </div>
                {{/if}}
                <div class="anniversary-message">
                    "愿这份美好永远伴随着你们" 💖
                </div>
            </div>
            {{/each}}
        </div>

        <div class="decorative-elements">
            <div class="decorative-heart">💖</div>
            <div class="decorative-heart">💕</div>
            <div class="decorative-heart">💖</div>
        </div>

        <div class="blessing">
            🌟 愿你们的爱情如纪念日一样，永远值得庆祝和铭记 🌟
        </div>

        {{#if (todayAnniversaries.length > 1)}}
        <div class="celebration-message">
            <div class="celebration-text">🎈 多重庆祝</div>
            <div class="celebration-subtitle">今天有这么多值得纪念的时刻，真是太幸福了！</div>
        </div>
        {{/if}}

        <div class="footer">
            💕 珍惜每一个值得纪念的时刻 💕
            <br>
            更新时间：{{updateTime}}
        </div>
    </div>

    <script>
     
        function createConfetti() {
            const confettiEmojis = ['🎊', '🎉', '✨', '🎆', '⭐', '💫'];
            const container = document.body;
            
            setInterval(() => {
                const confetti = document.createElement('div');
                confetti.className = 'confetti';
                confetti.style.left = Math.random() * 100 + '%';
                confetti.style.animationDelay = '0s';
                confetti.style.animationDuration = (Math.random() * 2 + 2) + 's';
                confetti.textContent = confettiEmojis[Math.floor(Math.random() * confettiEmojis.length)];
                
                container.appendChild(confetti);
                
                // 清理元素
                setTimeout(() => {
                    if (confetti.parentNode) {
                        confetti.parentNode.removeChild(confetti);
                    }
                }, 4000);
            }, 500);
        }
        
      
        window.addEventListener('load', createConfetti);
    </script>
</body>
</html>